package cn.mahjong.bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PlayMsg {
    private String userId;
    private Type type;
    private Object msg;

    public enum Type {
        CONNECT("连接"), TIPS("公告"), DEAL("发牌"), PLAY_CARDS("出牌");
        @Getter
        private final String desc;

        Type(String desc) {
            this.desc = desc;
        }
    }

}
